package cn.kgc.controller;

import cn.kgc.client.RestDmSchedulerClient;
import cn.kgc.pojo.DmScheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/scheduler")
//@Slf4j
public class SchedulerController {

    @Autowired
    RestDmSchedulerClient restDmSchedulerClient;

    @RequestMapping("/view/image")
    public DmScheduler getDmImageById(@RequestParam Long id ) throws Exception {
//            log.info("id"+id);
            return  restDmSchedulerClient.getDmSchedulerById(id);
    }

}
